<?php

/**
 * return string if its length < maxLength else return only part(maxLength) from the string
 * @author Mina Gerges 
 */
function setStringLengthString($sring, $maxLength = 16)
{
    if (strlen($sring) < $maxLength)
        return $sring;
    else
        return substr($sring, 0, $maxLength) . '...';
}
